-- GENERATED SPELL FOR [Azzere the Skyblade] --


function spell0_5834(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(13375,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5834', 3000, 1)
end

function spell1_5834(pUnit, Event) --@Flame Spike,n/a--
pUnit:FullCastSpellOnTarget(6725,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5834', 12000, 1)
end

function Sorts_5834(pUnit, Event)
local choix_sorts_5834 = math.random(0, 1)
if choix_sorts_5834 == 0 then
pUnit:RegisterEvent('spell0_5834', 1, 1)
end
if choix_sorts_5834 == 1 then
pUnit:RegisterEvent('spell1_5834', 1, 1)
end
end

function mob5834_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5834', math.random(1500, 3000), 1)
end

function mob5834_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5834_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5834_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5834, 1, 'mob5834_Action')
RegisterUnitEvent(5834, 2, 'mob5834_Leave')
RegisterUnitEvent(5834, 3, 'mob5834_Kill')
RegisterUnitEvent(5834, 4, 'mob5834_Die')
